Symbols with the same name

In the definition of struct

pico_atmt , notice that one of its fields is the unsigned short flags . Let's look to see if this symbol name is unique in the project.
In the Text view, double-click on flags .
flags is highlighted.
Choose Show > Symbol(s) flags....
SNiFF+ opens the Choose Symbol dialog. The Choose Symbol dialog opens when there is more than one symbol in the project called flags . As you can see, 6 different symbols in the project have the name flags .
If there was only one symbol called flags , the Source Editor would now be positioned at its declaration.

You may now want to see in which files the symbols are declared.

- Select the Show listing of files checkbox.
File and project information are now added to the entries.

You may want to limit the list to show only entries in the current file in the Source Editor ( pico.h ).

Enable the Scan only included files button

.
Now only two entries are shown.
Double-click on the second entry in the dialog.
The Source Editor appears and highlights the declaration of int flags in the struct mouse_struct .
Review
In this chapter, you started from the typedef PATMT and browsed its declaration. You then learned that PATMT represented the struct pico_atmt and then looked at field flags of the struct. By choosing the Show > Symbol(s) flags command, you determined that the symbol name flags was not unique in the project. The last thing you did was to load another declaration of flags in the Source Editor.
In the next chapter you'll learn how to use the Retriever - a textual search tool - for browsing. The string that you'll be searching for is "MOUSEPRESS".